#include "widget.h"
#include "ui_widget.h"
#include <QLabel>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QLabel*label_1=new QLabel(this);
    label_1->setText("hello world");    //纯代码添加
    label_1->move(300,200);
    ui->label_2->setText("hello wwp");  //图形拖拽添加
}

Widget::~Widget()
{
    delete ui;
}

